package com.my.demo.auth.config.mongo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by LeiXuMeng on 2017/7/14.
 */
@Component
public class MongoProperty {

    @Value("${mongo.host}")
    private String host;
    @Value("${mongo.name}")
    private String name;
    @Value("${mongo.user}")
    private String user;
    @Value("${mongo.pwd}")
    private String pwd;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }
}
